import http from "@/utils/http";

// 列表（树形）
export const goodsCatalogTreeList = () => http.get('/adminapi/goods/catalog/tree/list')

// 详情
export const goodsCatalogDetail = (id)=> http.get(`/adminapi/goods/catalog/detail/${id}`)

// 新增
export const goodsCatalogAdd = (data)=> http.post('/adminapi/goods/catalog/add', data)

// 编辑
export const goodsCatalogEdit = (data)=> http.post('/adminapi/goods/catalog/edit', data)

// 删除
export const goodsCatalogDelete = (id)=> http.delete(`/adminapi/goods/catalog/delete/${id}`)